<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script src="/scripts/jquery.js"></script>
    <link href="/styles/common.css" rel="stylesheet" type="text/css"/>
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style>
		.out{
			text-align:center;
			padding:40px 0 0 0 ;
		}
	</style>
  </head>
  
  <body>
   	<div class="out">
   		<form action="" method="">
   			<lable>旧密码：</lable><input type="password" name="pass.old" id="old" /><br/>
   			<lable>新密码：</lable><input type="password" name="pass.new1" id="new1" /><br/>
   			<lable>新密码：</lable><input type="password"/name="pass.new2" id="new2"><br/>
   			<input type="submit" value="修改" />
   		</form>
   	</div>
   	 
   </body>
</html>
<script type="text/javascript">
	$(document).ready(function(){
		$("input[type='submit']").click(function(){
			if($("#old").val()<1){
				alert("旧密码不能为空");
				return false;
			}
			if($("#new1").val()<1 || $("#new2").val()<1){
				alert("新密码不能为空");
				return false ;
			}
			if($("#new1").val() != $("#new2").val()){
				alert("两次输入的新密码不同") ;
				return false ;
			}
			return true ;
		});
	});
</script>
